import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/kettle/repository/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: `/api/kettle/repository/${id}`,
    method: 'get',
  })
}

export const getSelect = () => {
  return request({
    url: '/api/kettle/repository/select',
    method: 'get',
  })
}

export const add = () => {
  return request({
    url: '/api/kettle/repository',
    method: 'post',
  })
}

export const update = () => {
  return request({
    url: '/api/kettle/repository',
    method: 'put',
  })
}
